package cn.yiyuan.auth.service;

import cn.yiyuan.auth.domain.Role;
import cn.yiyuan.auth.dot.RoleDTO;
import cn.yiyuan.base.until.PageInfo;
import cn.yiyuan.org.query.DepQuery;

import java.io.Serializable;
import java.util.List;

/**
 * @user m
 * @project system
 * @date 2023-10-28
 * @package cn.yiyuan.org.service
 */
public interface IRoleService {
    void insert(Role role);

    void delete(Serializable id);

    void update(Role role);

    List<Role> getAll();

    Role getById(Serializable id);

    PageInfo<Role> queryPage(DepQuery depQuery);

    void roleAuth(RoleDTO roleDTO);

    List<Long> queryRolePermissionIds(Long id);

    void batchDelete(List<Long> ids);
}
